#include <stdio.h>
#include "avl_tree.h"

int main()
{
    int arr[7] = {7, 2, 3, 5, 1, 78, 9};
    int i = 0;

    tree_node_t *avl_tree = NULL;
    for(i = 0; i < 7; i++){
        avl_tree_insert_node(&avl_tree, arr[i]);
    }
    avl_tree_print(avl_tree);
    printf("\n");
    printf("删除结点2\n");
    avl_tree_delete_node(&avl_tree, 2);
    avl_tree_print(avl_tree);
    printf("\n");
    printf("hello avl\n");

    return 0;
}
